package com.itshare.video.pojo.po;

import java.io.Serializable;
import java.util.Date;

public class VideoComment implements Serializable {
    private Long commentId;

    private Integer revision;

    private String createdBy;

    private Date createdTime;

    private String updatedBy;

    private Date updatedTime;

    private String content;

    private Integer fromUserId;

    private Integer courseId;

    private Long videoId;

    private Integer isReply;

    private Integer parentCommentId;

    private Integer deleteStatus;

    private String fromUserName;

    private String atUserName;

    private Integer atUserId;

    private String fromAvatar;

    private static final long serialVersionUID = 1L;

    public Long getCommentId() {
        return commentId;
    }

    public VideoComment withCommentId(Long commentId) {
        this.setCommentId(commentId);
        return this;
    }

    public void setCommentId(Long commentId) {
        this.commentId = commentId;
    }

    public Integer getRevision() {
        return revision;
    }

    public VideoComment withRevision(Integer revision) {
        this.setRevision(revision);
        return this;
    }

    public void setRevision(Integer revision) {
        this.revision = revision;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public VideoComment withCreatedBy(String createdBy) {
        this.setCreatedBy(createdBy);
        return this;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy == null ? null : createdBy.trim();
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public VideoComment withCreatedTime(Date createdTime) {
        this.setCreatedTime(createdTime);
        return this;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public VideoComment withUpdatedBy(String updatedBy) {
        this.setUpdatedBy(updatedBy);
        return this;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy == null ? null : updatedBy.trim();
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public VideoComment withUpdatedTime(Date updatedTime) {
        this.setUpdatedTime(updatedTime);
        return this;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String getContent() {
        return content;
    }

    public VideoComment withContent(String content) {
        this.setContent(content);
        return this;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getFromUserId() {
        return fromUserId;
    }

    public VideoComment withFromUserId(Integer fromUserId) {
        this.setFromUserId(fromUserId);
        return this;
    }

    public void setFromUserId(Integer fromUserId) {
        this.fromUserId = fromUserId;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public VideoComment withCourseId(Integer courseId) {
        this.setCourseId(courseId);
        return this;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Long getVideoId() {
        return videoId;
    }

    public VideoComment withVideoId(Long videoId) {
        this.setVideoId(videoId);
        return this;
    }

    public void setVideoId(Long videoId) {
        this.videoId = videoId;
    }

    public Integer getIsReply() {
        return isReply;
    }

    public VideoComment withIsReply(Integer isReply) {
        this.setIsReply(isReply);
        return this;
    }

    public void setIsReply(Integer isReply) {
        this.isReply = isReply;
    }

    public Integer getParentCommentId() {
        return parentCommentId;
    }

    public VideoComment withParentCommentId(Integer parentCommentId) {
        this.setParentCommentId(parentCommentId);
        return this;
    }

    public void setParentCommentId(Integer parentCommentId) {
        this.parentCommentId = parentCommentId;
    }

    public Integer getDeleteStatus() {
        return deleteStatus;
    }

    public VideoComment withDeleteStatus(Integer deleteStatus) {
        this.setDeleteStatus(deleteStatus);
        return this;
    }

    public void setDeleteStatus(Integer deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public VideoComment withFromUserName(String fromUserName) {
        this.setFromUserName(fromUserName);
        return this;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName == null ? null : fromUserName.trim();
    }

    public String getAtUserName() {
        return atUserName;
    }

    public VideoComment withAtUserName(String atUserName) {
        this.setAtUserName(atUserName);
        return this;
    }

    public void setAtUserName(String atUserName) {
        this.atUserName = atUserName == null ? null : atUserName.trim();
    }

    public Integer getAtUserId() {
        return atUserId;
    }

    public VideoComment withAtUserId(Integer atUserId) {
        this.setAtUserId(atUserId);
        return this;
    }

    public void setAtUserId(Integer atUserId) {
        this.atUserId = atUserId;
    }

    public String getFromAvatar() {
        return fromAvatar;
    }

    public VideoComment withFromAvatar(String fromAvatar) {
        this.setFromAvatar(fromAvatar);
        return this;
    }

    public void setFromAvatar(String fromAvatar) {
        this.fromAvatar = fromAvatar == null ? null : fromAvatar.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", commentId=").append(commentId);
        sb.append(", revision=").append(revision);
        sb.append(", createdBy=").append(createdBy);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", updatedBy=").append(updatedBy);
        sb.append(", updatedTime=").append(updatedTime);
        sb.append(", content=").append(content);
        sb.append(", fromUserId=").append(fromUserId);
        sb.append(", courseId=").append(courseId);
        sb.append(", videoId=").append(videoId);
        sb.append(", isReply=").append(isReply);
        sb.append(", parentCommentId=").append(parentCommentId);
        sb.append(", deleteStatus=").append(deleteStatus);
        sb.append(", fromUserName=").append(fromUserName);
        sb.append(", atUserName=").append(atUserName);
        sb.append(", atUserId=").append(atUserId);
        sb.append(", fromAvatar=").append(fromAvatar);
        sb.append("]");
        return sb.toString();
    }
}